/*----------------Copyright(C) 2011 Shenyang MansionTech software Co.,Ltd. ALL RIGHTS RESERVED-------------------------
/*********************************************************************************************************************
*	FILE NAME	: tail.c
*	CREATE DATE	: 2011-04-14
*	MODULE		: UI
*	AUTHOR		: sunhm
*--------------------------------------------------------------------------------------------------------------------*
*	MEMO		:
*********************************************************************************************************************/
#include "tail.h"

static tail_klass_info local_tail_klass = {tail_init};
tail_klass_info* tail_klass = &local_tail_klass;

static tail* local_tail_ctor(tail* self)
{
	self->can_move = FALSE;
	return self;
}

static tail* local_tail_dtor(tail* self)
{
	return self;
}

void tail_init(void)
{
	if(KLASS(tail_klass)->init)
	{
		KLASS(tail_klass)->init = NULL;
		KLASS(tail_klass)->super = NULL;
		KLASS(tail_klass)->name = "tail_klass";
		KLASS(tail_klass)->size = sizeof(tail);
		KLASS(tail_klass)->ctor = local_tail_ctor;
		KLASS(tail_klass)->dtor = local_tail_dtor;
	}
}

BOOL tail_can_move(tail* self)
{
	return self->can_move;
}

void tail_set_move(tail* self, BOOL can_move)
{
	self->can_move = can_move;
}
/*************************************************end****************************************************************/

